package com.yami.shop.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yami.shop.bean.model.MeltCloudUserRemark;
import com.yami.shop.dao.MeltCloudUserRemarkMapper;
import com.yami.shop.service.MeltCloudUserRemarkService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
@AllArgsConstructor
public class MeltCloudUserRemarkServiceImpl extends ServiceImpl<MeltCloudUserRemarkMapper, MeltCloudUserRemark> implements MeltCloudUserRemarkService {
    
    
    @Override
    public MeltCloudUserRemark getRemark(Integer type, String userId, String objId) {
        MeltCloudUserRemark one = getOne(Wrappers.lambdaQuery(MeltCloudUserRemark.class).eq(MeltCloudUserRemark::getType, type).eq(MeltCloudUserRemark::getUserId, userId).eq(MeltCloudUserRemark::getObjId, objId));
        return one;
    }
    
    
    
}
